import request from '@/utils/request'

// 查询动态点赞列表
export function listDynamicLike(query) {
  return request({
    url: '/dynamic/dynamicLike/list',
    method: 'get',
    params: query
  })
}

// 查询动态点赞详细
export function getDynamicLike(id) {
  return request({
    url: '/dynamic/dynamicLike/' + id,
    method: 'get'
  })
}

// 新增动态点赞
export function addDynamicLike(data) {
  return request({
    url: '/dynamic/dynamicLike',
    method: 'post',
    data: data
  })
}

// 修改动态点赞
export function updateDynamicLike(data) {
  return request({
    url: '/dynamic/dynamicLike',
    method: 'put',
    data: data
  })
}

// 删除动态点赞
export function delDynamicLike(id) {
  return request({
    url: '/dynamic/dynamicLike/' + id,
    method: 'delete'
  })
}
